package edu.sctu.zhuyingzhi.month201505.day20150524.IoTest;



import java.io.*;

/**
 * Created by user13 on 2015/5/24.
 */
public class CopyFileTestV1 {
    public void copyFileV1() throws IOException {

        FileReader fileRead = new FileReader("src\\main\\java\\edu\\sctu\\zhuyingzhi\\day20150524\\ioTest\\test.txt");
        FileWriter fileWrite = new FileWriter("src\\main\\java\\edu\\sctu\\zhuyingzhi\\day20150524\\ioTest\\Test1.txt");

        char[] buffer = new char[200];

        int end = fileRead.read(buffer,0,200);

        fileWrite.write(buffer,0,end);

        fileWrite.flush();
        fileWrite.close();
//        fileRead.close();
//        fileWrite.close();
//        StringOne str = new StringOne(buffer,0,end);
//        System.out.println(str);

    }
}
